import Vue from 'vue'

import Cookies from 'js-cookie'
import Element from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import App from './App'
import store from './store'
import router from './router/routers'
import '@/styles/index.scss' // global css

import '@/styles/css/layuimini.css'
import '@/styles/css/public.css'
import '@/styles/css/themes/default.css'
// import permission from '@/utils/permission'

import modalAttr from './libs/modal-attr'
import modalIcon from './libs/modal-icon'
import { modalSure } from './libs/public.js'
import timeOptions from "./libs/timeOptions";
import dialog from "@/libs/dialog";
import scroll from "@/libs/loading";
import * as constants from '@/utils/constants.js'
import * as selfUtil from '@/utils/ZBKJIutil.js';
import util from '@/utils/utils'
import * as Auth from '@/libs/wechat';
import Contextmenu from 'vue-contextmenujs'

Vue.use(Contextmenu)
Vue.use(Element)
Element.Dialog.props.closeOnClickModal.default = false;
// Vue.use(permission)
Vue.config.productionTip = false
Vue.prototype.$store= store
Vue.prototype.$modalSure = modalSure
Vue.prototype.$modalAttr = modalAttr
Vue.prototype.$modalIcon = modalIcon
Vue.prototype.$dialog = dialog
Vue.prototype.$scroll = scroll;
Vue.prototype.$util = util;
Vue.prototype.$constants = constants;
Vue.prototype.$selfUtil = selfUtil;
Vue.prototype.$timeOptions = timeOptions;
Vue.prototype.$wechat = Auth;





new Vue({
  el: '#app',
  router,
  store,
  render: h => h(App)
})
